package com.dd.cloud.user.entity.classroom;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 媒体内容表
 * </p>
 *
 * @author czg
 * @since 2022-04-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Table(comment = "用户观看媒体记录表")
public class MediaPlayRecord implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 数据表说明:后台管理用户表
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Column(isKey = true,isAutoIncrement = true)
    private Integer id;

    /**
     * 视频内容id
     */
    @Column(comment = "视频内容id")
    private Integer contentId;
    
    /**
     * 累计播放次数
     */
    @Column(comment = "观看的用户id")
    private Integer userId;

    /**
     * 累计播放次数
     */
    @Column(comment = "观看的用户类型 同登录类型")
    private Integer userType;

    /**
     * 观看时间
     */
    @Column(comment = "观看时间,秒数")
    private Integer playTime;

    /**
     * 起始播放位置
     */
    @Column(comment = "起始播放位置,秒数")
    private Integer startPlay;

    /**
     * 结束播放位置
     */
    @Column(comment = "结束播放位置,秒数")
    private Integer endPlay;

    /**
     * 状态 1正常使用 -1禁用,
     */
    @Column(comment = "状态 1正常 -1删除")
    private Integer status;

    /**
     * 创建时间
     */
    @Column(comment = "创建时间", defaultValue = "now()")
    private LocalDateTime createDate;
}
